<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "mops_timer".
 *
 * @property int $id
 * @property int $coupon_catalog
 * @property int $num
 * @property int $min_num
 * @property string $describe
 * @property int $execute_at
 * @property int $created_at
 * @property int $updated_at
 */
class Timer extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'mops_timer';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['coupon_catalog', 'num', 'min_num', 'execute_at', 'created_at', 'updated_at'], 'integer'],
            [['describe'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'coupon_catalog' => 'Coupon Catalog',
            'num' => 'Num',
            'min_num' => 'Min Num',
            'describe' => 'Describe',
            'execute_at' => 'Execute At',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
